package com.shop.cereshop.commons.domain.im.tx.resp.friend;

import com.shop.cereshop.commons.domain.im.tx.resp.ImBaseResp;
import lombok.Builder;
import lombok.Data;

import java.util.List;

@Data
public class FriendBaseResp<T> extends ImBaseResp {

    /**
     * ErrorDisplay: String - 详细的客户端展示信息
     */
    private String ErrorDisplay;

    /**
     * Fail_Account  Array  返回处理失败的用户列表，仅当存在失败用户时才返回该字段
     */
    private List<String> Fail_Account;

    private List<T> ResultItem;

    private List<FriendUserDataItem> UserDataItem;
    //    "CompleteFlag": 1,
//            "NextStartIndex": 0,
    private Integer CompleteFlag;
    private Integer NextStartIndex;

    // 重写toString方法以包含父类的字段
    @Override
    public String toString() {
        return "FriendBaseResp{" +
                "ActionStatus='" + getActionStatus() + '\'' +
                ", ErrorCode=" + getErrorCode() +
                ", ErrorInfo='" + getErrorInfo() + '\'' +
                ", ErrorDisplay='" + ErrorDisplay + '\'' +
                ", Fail_Account=" + Fail_Account +
                ", ResultItem=" + ResultItem +
                ", UserDataItem=" + UserDataItem +
                '}';
    }
}
